import request from '@/utils/request'

// 获取全部模块儿
export function getModelList() {
  return request({
    url: '/tv/video/getModelList',
    method: 'get'
  })
}

// 通过模块id查看全部大类列表
export function getBigTypeList(query) {
  return request({
    url: '/tv/video/getBigTypeList',
    method: 'get',
    params: query
  })
}

// 通过大类查看全部小类列表
export function getSmallTypeList(query) {
  return request({
    url: '/tv/video/getSmallTypeList',
    method: 'get',
    params: query
  })
}

// 通过大类查看全部视频集
export function getVideoCollectListByBigType(query) {
  return request({
    url: '/tv/video/getVideoCollectListByBigType',
    method: 'get',
    params: query
  })
}

// 通过小类查看全部视频集
export function getVideoCollectList(query) {
  return request({
    url: '/tv/video/getVideoCollectList',
    method: 'get',
    params: query
  })
}

// 通过视频集id查看全部视频
export function getVideoList(query) {
  return request({
    url: '/tv/video/getVideoList',
    method: 'get',
    params: query
  })
}

// 获取视频播放签名
export function getVideoCart(query) {
  return request({
    url: '/tv/video/getVideoCart',
    method: 'get',
    params: query
  })
}

// 通过模糊搜索查看视频
export function getVideoCollectListByTitle(query) {
  return request({
    url: '/tv/video/getVideoCollectListByTitle',
    method: 'get',
    params: query
  })
}

// 查看历史记录
export function myVideoLog(query) {
  return request({
    url: '/tv/log/myVideoLog',
    method: 'get',
    params: query
  })
}

// 删除历史记录
export function deleteVideoLog(query) {
  return request({
    url: '/tv/log/deleteVideoLog',
    method: 'DELETE',
    params: query
  })
}

// 获取轮播图
export function getCarouselImageList(query) {
  return request({
    url: '/tv/video/getCarouselImageList',
    method: 'get',
    params: query
  })
}

// 查看视频详情
export function getVideoInfo(query) {
  return request({
    url: '/tv/video/getVideoInfo',
    method: 'get',
    params: query
  })
}
